<%-- 
    Document   : temp
    Created on : Oct 11, 2013, 10:09:53 AM
    Author     : NGUYEN
--%>

<%@page import="java.util.ArrayList"%>
<%@page import="DAO.LOAINHANVIENDAO"%>
<%@page import="DTO.LOAINHANVIENDTO"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>ThemNhanVien</title>
        <script language="javascript" type="text/javascript">
            function showMenu(isShow, idSubMenu)
            {
                var subMenu = document.getElementById(idSubMenu);
                if (isShow === true)
                    subMenu.style.visibility = "visible";
                else
                    subMenu.style.visibility = "hidden";
            }
        </script>
        <style type="text/css">
            .menu
            {
                position:absolute;
                visibility:hidden;
            }


        </style>
    </head>


    <body>
        <table width="800" border="1" align="center">
            <!--header-->
            <jsp:include page="header.jsp"/>
            <!--header end-->

            <!--menu-->
            <jsp:include page="menu.jsp"/>
            <!--menu end-->
            <tr>

                <td height="255" align="center" valign="top">
                    <p>&nbsp;</p>
                    <p><font color="#0000FF" size="5">THÊM NHÂN VIÊN</font></p>
                    <form id="form1" name="form1" method="post" action="themnhanvien">
                        <table>
                            <tr>
                                <td><div align="right"><strong>Mật Khẩu:</strong></div></td>
                                <td><input style="width:150px" name="textMK" type="text" /></td>
                            </tr>
                            <tr>
                                <td><div align="right"><strong>Tên Nhân Viên:</strong></div></td>
                                <td><input style="width:150px" name="textTenNV" type="text" /></td>
                            </tr>
                            <tr>
                                <td><div align="right"><strong>Loại Nhân Viên</strong></div></td>
                                <td>

                                    <label>
                                        <select name="select" style="width:150px">
                                            <%
                                                ArrayList<LOAINHANVIENDTO> ds;
                                                ds = new ArrayList<LOAINHANVIENDTO>();
                                                LOAINHANVIENDAO dao;
                                                dao = new LOAINHANVIENDAO();
                                                ds = dao.list_loainhanvien();
                                                if (ds.size() == 0) {
                                                } else {
                                                    for (int i = 0; i < ds.size(); i++) {
                                                        int maloai = ds.get(i).getMaloainv();
                                                        String tenloai = ds.get(i).getTenloainv();
                                            %>
                                            <option value="<%=maloai%>"><%=tenloai%></option>
                                            <%
                                                    }
                                                }
                                            %>
                                        </select>
                                    </label>

                                </td>
                            </tr>
                            <tr>
                                <td><div align="right"><strong>Địa chỉ:</strong></div></td>
                                <td><input style="width:180px" name="textDC" type="text" /></td>
                            </tr>


                            <tr>
                                <td><div align="right"><strong>Số Điện Thoại:</strong></div></td>
                                <td><input style="width:150px" name="textSoDienThoai" type="text" /></td>
                            </tr>

                            <tr
                                <td>
                                    <input type="submit" value="Thêm" name="btThem" /> 
                                    <input type="reset" value="Xóa" name="btXoa" />
                                </td>
                            </tr>
                        </table>
                    </form>

                </td>
            </tr>
            <!--footer-->
            <jsp:include page="footer.jsp"/>
            <!--footer end-->
        </table>

    </body>
</html>


